package PlanetDefender;

import phonegame.*;

public class Building extends GameItem 
{	
	private String name;
	private int price; 
	private int health;

	public Building(String name, int price, int health, int x, int y) {
		super();
		this.name 	= name;
		this.price 	= price;
		this.health = health;
		
		super.setImage("/images/buildings/" + this.name + ".png");
		super.setPosition(x, y);
	}

	
	public int getPrice () {
		return price;
	}
	
	public void setHealth(int health) {
		this.health = health;
	}
	
	public int getHealth() {
		return health;		
	}
	
	public String getName(){
		return name;
	}
	
}